package ooday03;
/** 接口的演示 */
public class InterfaceDemo {
    public static void main(String[] args) {
        Coo c = new Coo();
        c.say();
        c.show();
        c.test();
    }
}

























interface Inter1{
    public void show();

}
interface Inter2{
    void test();
}

class Aoo implements Inter1,Inter2{
    public void show(){
        System.out.println("a");
    }
    public void test(){System.out.println("b");}
}

abstract class Boo{
    abstract void say();
}

class Coo extends Boo implements Inter1,Inter2{
    public void show(){System.out.println("a");}
    public void test(){System.out.println("b");}
    void say(){System.out.println("c");}
}

